#include<stdio.h>
/*int main()
{
    char a[80];
    for(int i = 0;i<=80;i++)
    {
        scanf("%c",&a[i]);
    }
    for(int i = 0;i<=80;i++)
    {
        if(a[i]>='0'&&a[i]<='9')
        {
            printf("%c",a[i]);
        }
    }
    return 0;
}*/
int main()
{
	char str[81] = { 0 };
	gets(str);
	int count = 0;
	for (int i = 0; i < 81; ++i)
	{
		if (str[i] >= '0' && str[i] <= '9')
		{
			count = count*10 + str[i] - '0';
		}
	}
	printf("%d", count);
	return 0;
}
